package easy

func IsRectangleOverlap(rec1 []int, rec2 []int) bool {
	return (max(rec1[0], rec2[0]) < min(rec2[2], rec1[2])) && (min(rec1[3], rec2[3]) > max(rec1[1], rec2[1]))
}
